home *** CD-ROM | disk | FTP | other *** search
/ ADA Programming Guide / ADA Programming Guide.iso / ada_gnu / adainc / s-timtyp.ads < prev    next >
Text File  |  1996-01-30  |  2KB  |  44 lines

  1. ------------------------------------------------------------------------------
  2. --                                                                          --
  3. --                GNU ADA RUNTIME LIBRARY (GNARL) COMPONENTS                --
  4. --                                                                          --
  5. --                    S Y S T E M _ T I M E _ T Y P E S                     --
  6. --                                                                          --
  7. --                                 S p e c                                  --
  8. --                                                                          --
  9. --                            $Revision: 1.2 $                              --
  10. --                                                                          --
  11. --           Copyright (c) 1992,1993,1994 FSU, All Rights Reserved          --
  12. --                                                                          --
  13. -- GNARL is free software; you can redistribute it  and/or modify it  under --
  14. -- terms  of  the  GNU  Library General Public License  as published by the --
  15. -- Free Software  Foundation;  either version 2, or (at  your  option)  any --
  16. -- later  version.  GNARL is distributed  in the hope that  it will be use- --
  17. -- ful, but but WITHOUT ANY WARRANTY;  without even the implied warranty of --
  18. -- MERCHANTABILITY  or  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Gen- --
  19. -- eral Library Public License  for more details.  You should have received --
  20. -- a  copy of the GNU Library General Public License along with GNARL;  see --
  21. -- file COPYING.LIB.  If not,  write to the  Free Software Foundation,  675 --
  22. -- Mass Ave, Cambridge, MA 02139, USA.                                      --
  23. --                                                                          --
  24. ------------------------------------------------------------------------------
  25.  
  26.  
  27. with Calendar;
  28.  
  29. package System.Time_Types is
  30.  
  31.    type Time_Types is (Calendar_Time_Type, Real_Time_Type);
  32.  
  33.    type Time_Type (T : Time_Types) is record
  34.       case T is
  35.          when Calendar_Time_Type =>
  36.             CT : Calendar.Time;
  37.  
  38.          when Real_Time_Type =>
  39.             RT : integer;    --  to be defined later for GNAT ???
  40.       end case;
  41.    end record;
  42.  
  43. end System.Time_Types;
  44.